﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Agriculture.Domain
{
    /// <summary>
    /// 订单基础实体
    /// </summary>
    public class OrderModel : EntityModel
    {
        /// <summary>
        /// 订单编号
        /// </summary>
        public string OrderNo { get; set; }

        /// <summary>
        /// 订单类型（问诊/挂号/药品订单）
        /// </summary>
        public string OrderType { get; set; }

        /// <summary>
        /// 订单金额
        /// </summary>
        public decimal Amount { get; set; }
        
        /// <summary>
        /// 订单金额（别名）
        /// </summary>
        public decimal OrderAmount { get; set; }

        /// <summary>
        /// 优惠金额
        /// </summary>
        public decimal DiscountAmount { get; set; }

        /// <summary>
        /// 实际支付金额
        /// </summary>
        public decimal PayAmount { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 订单状态（0待支付/1已支付/2待发货/3待收货/4已完成/5已取消/6已退款）
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 支付方式
        /// </summary>
        public string? PayMethod { get; set; }

        /// <summary>
        /// 支付时间
        /// </summary>
        public DateTime? PayTime { get; set; }
    }
}
